package com.ymsoft.myerp.socketio;

import com.corundumstudio.socketio.SocketIOClient;

import java.util.Map;

public interface SocketIOService {
    //推送的事件
    public static final String RECEIVE = "receive";

    // 启动服务
    void start() throws Exception;

    // 停止服务
    void stop();

    // 断开连接
    void disconnect(String loginUserNum);

    // 推送信息
    void pushMessageToUser(PushMessage pushMessage);

    // 消息推送
    public void pushMessageToUser(String loginUserNum, String content, String event);

    public Map<String, SocketIOClient> getMaps();
}
